//---------------------------------------------------------------------------

#ifndef code_frmMainH
#define code_frmMainH
//---------------------------------------------------------------------------
#include <Classes.hpp>
#include <Controls.hpp>
#include <StdCtrls.hpp>
#include <Forms.hpp>
#include <Menus.hpp>
#include <ComCtrls.hpp>
#include <ToolWin.hpp>
#include <ExtCtrls.hpp>
#include <jpeg.hpp>
#include <ImgList.hpp>
#include <Graphics.hpp>
//---------------------------------------------------------------------------
class TfrmMain : public TForm
{
__published:	// IDE-managed Components
        TImage *imgMnuLeftBorder;
        TImage *imgMnuBar;
        TPopupMenu *pmSys;
        TMenuItem *N1;
        TMenuItem *N2;
        TMenuItem *N3;
        TImageList *imgMnuLst;
        TMenuItem *mnu0;
        TPopupMenu *pmOper;
        TMenuItem *N4;
        TMenuItem *N5;
        TMenuItem *N6;
        TImage *imgToolBarLeftBorder;
        TImage *imgToolBar;
        TImage *imgMainLeft;
        TImage *imgMainRight;
        TPopupMenu *pmHlp;
        TMenuItem *N7;
        TMenuItem *N8;
        TImage *imgStatusBar;
        TLabel *lblStatus;
        TImage *imgToolBarSeperator;
        TImage *imgConfig;
        TImage *imgPlate;
        TImage *imgLock;
        TImage *imgExit;
        TImageList *ilLogIn;
        TLabel *lblLogIn;
        TLabel *lblConfig;
        TLabel *lblPlate;
        TLabel *lblLock;
        TLabel *lblExit;
        TImage *imgLogview;
        TLabel *lblLogview;
        TImage *imgLogIn;
        TPanel *pnlSys;
        TLabel *lblMnuSys;
        TPanel *pnlOper;
        TLabel *lblMnuOper;
        TPanel *pnlHlp;
        TLabel *lblMnuHlp;
        void __fastcall FormCreate(TObject *Sender);
        void __fastcall lblMnuSysClick(TObject *Sender);
        void __fastcall N1MeasureItem(TObject *Sender, TCanvas *ACanvas,
          int &Width, int &Height);
        void __fastcall mnu0MeasureItem(TObject *Sender, TCanvas *ACanvas,
          int &Width, int &Height);
        void __fastcall N1AdvancedDrawItem(TObject *Sender,
          TCanvas *ACanvas, TRect &ARect, TOwnerDrawState State);
        void __fastcall lblMnuOperClick(TObject *Sender);
        void __fastcall FormResize(TObject *Sender);
        void __fastcall lblMnuHlpClick(TObject *Sender);
        void __fastcall imgConfigClick(TObject *Sender);
        void __fastcall N5Click(TObject *Sender);
        void __fastcall imgExitClick(TObject *Sender);
        void __fastcall N3Click(TObject *Sender);
        void __fastcall imgLogviewClick(TObject *Sender);
        void __fastcall imgLogInClick(TObject *Sender);
        void __fastcall N1Click(TObject *Sender);
        void __fastcall N4Click(TObject *Sender);
        void __fastcall N8Click(TObject *Sender);
        void __fastcall imgPlateClick(TObject *Sender);
        void __fastcall N6Click(TObject *Sender);
        void __fastcall lblMnuSysDblClick(TObject *Sender);
private:	// User declarations
        void   __fastcall   lblMnuSysWndProc(TMessage &Msg);
        TWndMethod   lblMnuSysOldWndProc;
        void   __fastcall   lblMnuOperWndProc(TMessage &Msg);
        TWndMethod   lblMnuOperOldWndProc;
        void   __fastcall   lblMnuHlpWndProc(TMessage &Msg);
        TWndMethod   lblMnuHlpOldWndProc;

public:		// User declarations
        __fastcall TfrmMain(TComponent* Owner);
};
//---------------------------------------------------------------------------
extern PACKAGE TfrmMain *frmMain;
//---------------------------------------------------------------------------
#endif
